package io.xccit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.xccit.pojo.User;
import io.xccit.pojo.dto.UserDTO;

import java.util.List;

public interface IUserService extends IService<User> {


    List<User> findAll();

    boolean save(User user);

    Integer update(User user);

    Integer delete(Integer id);

    List<User> pageFind(Integer pageNum,Integer pageSize);

    Integer total();

    List<User> findByUserName(String username);

    boolean batchDelete(List<Integer> ids);

    UserDTO login(UserDTO userDTO);
}
